Skip to main content

Balance

Displays the balance of a given address in the native token of the target network (for example MOVE on Movement, APT on Aptos). The symbol comes from native_token_symbol in defaultChains, and falls back to APT. Shows a loading placeholder while fetching, and Error if the balance cannot be fetched.

Screenshot​

Balance Example

Usage​

import { Balance } from "~~/components/scaffold-move";
import { useWallet } from "@aptos-labs/wallet-adapter-react";

const { account, connected } = useWallet();
<Balance address={account?.address as string} />

Parameter​

ParameterTypeDefault ValueDescription
addressstringundefinedAddress in 0x___ format.